package com.liang.pattern;

import org.itstack.demo.design.ceiling.LevelOneCeiling;
import org.itstack.demo.design.ceiling.LevelTwoCeiling;
import org.itstack.demo.design.coat.DuluxCoat;
import org.itstack.demo.design.coat.LiBangCoat;
import org.itstack.demo.design.floor.ShengXiangFloor;
import org.itstack.demo.design.tile.DongPengTile;
import org.itstack.demo.design.tile.MarcoPoloTile;

/**
 * @author lsm
 * @ClassName Builder.java
 * @Description TODO
 * @createTime 2023年11月30日 16:16:00
 */
public class Builder {

    public IMenu levelOne(Double area) {
        return new DecorationPackageMenu(area, "豪华欧式")
                .appendCeiling(new LevelTwoCeiling()) // 吊顶，⼆二级顶
                .appendCoat(new DuluxCoat()) // 涂料料，多乐⼠士
                .appendFloor(new ShengXiangFloor()); // 地板，圣象
    }
    public IMenu levelTwo(Double area){
        return new DecorationPackageMenu(area, "轻奢⽥田园")
                .appendCeiling(new LevelTwoCeiling()) // 吊顶，⼆二级顶
                .appendCoat(new LiBangCoat()) // 涂料料，⽴立邦
                .appendTile(new MarcoPoloTile()); // 地砖，⻢马可波罗
    }
    public IMenu levelThree(Double area){
        return new DecorationPackageMenu(area, "现代简约")
                .appendCeiling(new LevelOneCeiling()) // 吊顶，⼆二级顶
                .appendCoat(new LiBangCoat()) // 涂料料，⽴立邦
                .appendTile(new DongPengTile()); // 地砖，东鹏
    }
}
